const { mongoose } = require('./db')
const Schema = mongoose.Schema

//入库展示
const rukuSchema = new Schema({
    chexing: String,
    shouchetime: {
        type: Date,
        default: new Date()
    },
    chejia: String,
    yuancheName: String,
    shouPerson: String,
    putmanagement: String,//入库库管
    putNum: { type: Number, default: 5 },
    okputtotal: { type: Number, default: 5 },//确认入库总量
    putapplynum: String,// 入库申请编号
    sqpeople: String,//申请人员
})
const rukuModel = mongoose.model('ruku', rukuSchema, 'ruku')
// rukuModel.create([
//     {
//         //         messagename:'app11',
//         chexing: "RK2023021700", //消息名称
//         // shouchetime:,
//         chejia: "235",
//         yuancheName: "新增入库",
//         shouPerson: "张晓雪2",
//         putmanagement: "王烨2",//入库库管
//         putNum: 23,
//         okputtotal: 23,//确认入库总量
//         putapplynum: "EJ896678",// 入库申请编号
//         sqpeople: "露丝2",//申请人员
//     }
// ])
module.exports = { rukuModel }
